package io.github.springsongs.controller;

import io.github.springsongs.entities.CommonResult;
import io.github.springsongs.entities.Payment;
import io.github.springsongs.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderFeignController {

    @Resource
    private PaymentFeignService paymentFeignService;
    @GetMapping("/payment/{id}")
    public CommonResult<Payment> getPaymentbyId(@PathVariable("id") Long id){
        return paymentFeignService.getPaymentbyId(id);
    }

}
